package com.ruoyi.job.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ShOrderDs extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private String orderNo;

    /** 商铺ID */
    private Long shopId;

    /** 商品ID */
    private Long productId;

    /** 订单金额 */
    private BigDecimal amount;

    /** 订单折扣 */
    private BigDecimal discount;

    /** 支付金额 */
    private BigDecimal payAmount;

    /** 购买数量 */
    private Integer num;

    /** 地址Id */
    private Long addressId;

    /** 订单状态 */
    private Integer status;
}
